﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CarPicker.aspx.cs" Inherits="DataBinding.CarPicker" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label id="lblProducer" runat="server" Text="Producers:"></asp:Label>
        <asp:DropDownList ID="producers" runat="server" DataValueField="producerName"
            DataTextField="producerName" ></asp:DropDownList>
        <asp:Label id="lblModels" runat="server" Text="Models:"></asp:Label>

        <asp:DropDownList ID="models" runat="server" DataTextField="modelName" 
        DataValueField ="modelName" 
        AutoPostBack ="true" ></asp:DropDownList>

        <asp:CheckBoxList ID="extras" runat="server" RepeatColumns ="4" RepeatDirection="Vertical"
            AutoPostBack ="true" OnSelectedIndexChanged ="models_SelectedIndexChanged">
            <asp:ListItem>a</asp:ListItem>
            <asp:ListItem>a</asp:ListItem>
            <asp:ListItem>a</asp:ListItem>
            <asp:ListItem>a</asp:ListItem>
            <asp:ListItem>a</asp:ListItem>
        </asp:CheckBoxList>
        <asp:Literal ID="result" runat="server">dwadw</asp:Literal>
    </div>
    </form>
</body>
</html>
